<%@ include file="/taglibs.jsp"%>


<head>
	<title><fmt:message key="informFilePublicAdminForm.form.title"/></title>
	<script type="text/javascript" src="${ctx}/scripts/file_module.js"></script>	
	<script type="text/javascript">
		function submit_form(){
			$('#informFileViaEmailForm').submit();
		}
	</script>	
</head>

<s:form id="informFileViaEmailForm" name="informFileViaEmailForm" action="sendMessage" method="post">


<table class="table">
	<tr>
		<td width="100px">
	        <s:property value="getText('informFilePublicAdminForm.fileCode')"/>
	    </td>
	    <td >
	        <s:property value="fileCode"/><s:hidden name="fileCode"  value="%{fileCode}"></s:hidden>
	    </td>
	</tr>
	<tr>
		<td >
	        <s:property value="getText('informFilePublicAdminForm.sender')"/>
	    </td>
	    <td >
	        <s:property value="sender"/><s:hidden name="sender"  value="%{sender}"></s:hidden>
	        <s:hidden name="id"  value="%{id}"></s:hidden>
	        <s:hidden name="type"  value="%{type}"></s:hidden>
	    </td>
	</tr>
	<tr>
		<td >
	        <s:property value="getText('informFilePublicAdminForm.address')"/>
	    </td>
	    <td >
	        <s:property value="address"/>
	    </td>
	</tr>
	
</table>
<table class="table">
	<s:select key="informFilePublicAdminForm.informType" 
		list="#{'1':'\u0110\u1EE7 h\u1ED3 s\u01A1', '2':'Ch\u01B0a \u0111\u1EE7 h\u1ED3 s\u01A1'}" 
		name="informType" value="informType"/>
	<tr>
		<td width="100px">
	        <s:property value="getText('informFilePublicAdminForm.to')"/>
	    </td>
	    <td width="100px">
	        <s:textfield name="email" size="80" theme="simple"/>
	    </td>
	</tr>
	<tr>
		<td >
	        <s:property value="getText('informFilePublicAdminForm.subject')"/>
	    </td>
	    <td >
	        <s:textfield name="subject" size="80" theme="simple"/>
	    </td>
	</tr>
	
	<tr>
		<td width="100px">
	        <s:property value="getText('informFilePublicAdminForm.note')"/>
	    </td>
	    <td width="100px">
	        <s:textarea name="informNote" cols="70" rows="5" theme="simple"/>
	    </td>
	</tr>
	<tr>
		<td colspan="2">
			<c:if test="${not empty fileCode && not empty email}">
				<s:a href="javascript:" >
			    		<img src="${ctx}/images/btn_send_message_link.png" onclick="submit_form();">
			    </s:a>
			</c:if>
			<s:a href="javascript:" onclick="history.go(-1);">
		    		<img src="${ctx}/images/btn_cancel_link.png">
		    	</s:a><div >
			<fmt:message key="informFilePublicAdminForm.help"/>
		</div>
		</td>
	</tr>
</table>

</s:form>
